/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework.view;

import java.util.HashMap;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
 *
 * @author ThanhNguyen
 */
public class AddPersonalAccountDialog extends AddAccountDialog {

    private JLabel JLabel6;
    private JTextField JTextField_BD;

    @Override
    public HashMap<String, String> getFields() {
        HashMap<String, String> fields = super.getFields();
        fields.put("birth_date", JTextField_BD.getText());
        return fields;
    }

    @Override
    public void initDialog() {
        int x = 40;
        int y = 20;
        setTitle("Add Personal Account");
        setModal(true);
        setLayout(null);
        setSize(260 + y, 290 + x);
        setResizable(false);
    }

    @Override
    public void initAccountTypeControls() {
    }

    @Override
    public void initAccountControls() {
        int x = 20;
        int y = 20;
        JLabel6 = new JLabel();
        JTextField_BD = new JTextField();
        JLabel6.setText("Birthdate");
        getContentPane().add(JLabel6);
        JLabel6.setForeground(java.awt.Color.black);
        JLabel6.setBounds(12 + y, 198 + x, 96, 24);
        getContentPane().add(JTextField_BD);
        JTextField_BD.setBounds(84 + y, 198 + x, 156, 20);
    }
}
